<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx_path" value="<%=request.getContextPath() %>" />
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>丰业家居管理后台</title>
    <meta http-equiv="keywords" content="SuperManager">
    <meta http-equiv="description" content="丰业家居管理后台">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
    <!--CSS 文件引入-->
    <link rel="stylesheet" type="text/css" href="${ctx_path}/resources/admin/assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="${ctx_path}/resources/admin/assets/css/font-awesome.min.css" />
    <!-- text fonts -->
    <link rel="stylesheet" href="${ctx_path}/resources/admin/assets/css/jquery-ui.custom.min.css" />
    <link rel="stylesheet" href="${ctx_path}/resources/admin/assets/css/ace-fonts.css" />
    <link rel="stylesheet" href="${ctx_path}/resources/admin/assets/css/chosen.css" />
    <link rel="stylesheet" href="${ctx_path}/resources/admin/assets/css/fullcalendar.css">
    <link rel="stylesheet" href="${ctx_path}/resources/admin/assets/css/datepicker.css" />
    <link rel="stylesheet" href="${ctx_path}/resources/admin/assets/css/colorpicker.css" />
    <link rel="stylesheet" href="${ctx_path}/resources/admin/assets/css/jquery.dataTables.min.css" />
    <link rel="stylesheet" href="${ctx_path}/resources/admin/assets/css/zTreeStyle.css" />
    <%--
    <link rel="stylesheet" href="${pageContext.request.contextPath}/assets/css/dataTables.bootstrap.css" />
    --%>
    <!-- ace styles -->
    <link rel="stylesheet" href="${ctx_path}/resources/admin/assets/css/ace.min.css" />
    <!--[if lte IE 9]>
    <link rel="stylesheet" href="${ctx_path}/resources/admin/assets/css/ace-part2.min.css" />
    <![endif]-->
    <link rel="stylesheet" href="${ctx_path}/resources/admin/assets/css/ace-skins.min.css" />
    <link rel="stylesheet" href="${ctx_path}/resources/admin/assets/css/ace-rtl.min.css" />
    <!--[if lte IE 9]>
    <link rel="stylesheet" href="${ctx_path}/resources/admin/assets/css/ace-ie.min.css" />
    <![endif]-->
    <!-- ace settings handler -->
    <script src="${ctx_path}/resources/admin/assets/js/ace-extra.min.js"></script>
    <!--[if lte IE 8]>
    <script src="${ctx_path}/resources/admin/assets/js/html5shiv.js"></script>
    <script src="${ctx_path}/resources/admin/assets/js/respond.min.js"></script>
    <![endif]-->
</head>

<body class="no-skin">
<!-- 引入头部导航文件开始 -->
<jsp:include page="nav.jsp"></jsp:include>
<!-- 引入头部导航文件结束 -->

<!-- 中间主体部分 -->
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try{ace.settings.check('main-container' , 'fixed')}catch(e){}
    </script>
    <!-- 引入菜单 文件开始 -->
    <jsp:include page="menu.jsp"></jsp:include>
    <!-- 引入菜单 文件结束 -->
    <div class="main-content" id="main-content">
        <!-- 引入主页内容开始 -->
        <jsp:include page="center.jsp"></jsp:include>
        <!-- 引入主页内容结束 -->
    </div>
</div>

<!-- footer版权部分 -->
<jsp:include page="footer.jsp"></jsp:include>

<!-- 引入JS文件 -->
<script src="${ctx_path}/resources/admin/assets/js/jquery.min.js"></script>
<script type="text/javascript">
    if("ontouchend" in document) document.write("<script src='${pageContext.request.contextPath}/assets/js/jquery.mobile.custom.min.js'>"+"<"+"script>");
</script>
<script src="${ctx_path}/resources/admin/assets/js/bootstrap.min.js"></script>
<script src="${ctx_path}/resources/admin/assets/js/ace-elements.min.js"></script>
<script src="${ctx_path}/resources/admin/assets/js/ace.min.js"></script>
<script src="${ctx_path}/resources/admin/assets/js/jquery-ui.custom.min.js"></script>
<!-- 引入FullCalendar -->
<script src="${ctx_path}/resources/admin/assets/js/fullcalendar.min.js"></script>
<script src="${ctx_path}/resources/admin/artDialog/artDialog.js?skin=simple"></script>
<script src="${ctx_path}/resources/admin/assets/js/date-time/bootstrap-datepicker.min.js"></script>
<script src="${ctx_path}/resources/admin/assets/js/bootstrap-colorpicker.min.js"></script>
<script src="${ctx_path}/resources/admin/assets/js/chosen.jquery.min.js"></script>
<script src="${ctx_path}/resources/admin/assets/js/jquery.form.js"></script>
<script src="${ctx_path}/resources/admin/assets/js/jquery.validate.min.js"></script>
<script src="${ctx_path}/resources/admin/assets/js/jquery.ztree.core-3.5.min.js"></script>
<script src="${ctx_path}/resources/admin/assets/js/jquery.ztree.excheck-3.5.min.js"></script>
<!-- 引入富文本 -->
<%--<script src="${ctx_path}/resources/admin/assets/js/jquery.hotkeys.min.js"></script>
<script src="${ctx_path}/resources/admin/assets/js/bootstrap-wysiwyg.min.js"></script>--%>
<!--设定全局变量方便配置文件中调用js存储位置-->
<link href="../resources/kindeditor/themes/simple/simple.css">
<script src="../resources/kindeditor/kindeditor-all.js"></script>
<script src="../resources/kindeditor/lang/zh_CN.js"></script>
<script>
    function createKindEditor(textareaName){
        return KindEditor.create('textarea[name="'+textareaName+'"]',{
            cssPath : '../resources/kindeditor/plugins/code/prettify.css',
            uploadJson : '${ctx_path}/kind/file/upload',
            fileManagerJson : '${ctx_path}/kind/file/manager',
            allowFileManager : true,
            width : '90%',
            height:'300px',
            autoHeightMode : true
          //  imageSizeLimit : '5MB'
        });
    }

</script>
<!-- 引入表格 -->
<script type="text/javascript"  src="${ctx_path}/resources/admin/assets/js/jquery.dataTables.js"></script>
<%--<script type="text/javascript"  src="${pageContext.request.contextPath}/assets/js/dataTables.bootstrap.js"></script>--%>
<script type="text/javascript">
    jQuery(function($){
        window.prettyPrint && prettyPrint();
        $('#id-check-horizontal').removeAttr('checked').on('click', function(){
            $('#dt-list-1').toggleClass('dl-horizontal').prev().html(this.checked ? '&lt;dl class="dl-horizontal"&gt;' : '&lt;dl&gt;');
        });
    });
    function loadPage(li,url){
        if(url==null || url == ""){
            return;
        }
        $("#sidebar .active").removeClass("active");		//去掉之前激活样式
        //	$("#homeli").addClass("active");					//首页仪表盘永远处于激活状态
        if(li!=""){
            $("#"+li).addClass("active");
        }
        $("#main-content").load(url);
    }
</script>
</body>
</html>